package dk.aiszone.lang.sql.interfaces;

/**
 * Interface implemented by <code>SQLObjec</code> objects, which contains child constraints.
 * 
 * @author Ais
 */
public interface SQLChildHolder extends SQLPart {

    /**
     * Retrieve the child with the specified index.
     * 
     * @param index
     *            The index of the child to retrieve.
     * @return The child at the specified index.
     */
    public abstract SQLObject getChild(int index);

    /**
     * Retrieve the number of children contained by the <code>SQLConstraintHolder</code>
     * 
     * @return The number of children.
     */
    public abstract int getChildCount();

}